package com.ypj.indusynergyems.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ypj.indusynergyems.dao.entity.GoodsEntity;
import com.ypj.indusynergyems.dao.entity.GoodsTypeEntity;
import com.ypj.indusynergyems.dao.entity.ShopEntity;
import com.ypj.indusynergyems.dao.entity.UserEntity;

import java.util.List;

public interface IShopService extends IService<ShopEntity> {

    /**
     * 根据用户Id查询用户管理的商铺
     * @param userId 用户ID
     * @return 返回商铺列表
     */
    List<ShopEntity> findAllShopById(int userId);

    String shopRegister(int userId,ShopEntity shop);


    List<GoodsEntity> findAllGoodsByShopId(int shopId);

    String getShopTypeName(GoodsEntity goodsEntity);

    String findShopName(int shopId);

    /**
     * 根据商店ID查询商品类型
     *
     * @param shopId
     * @return
     */
    List<GoodsTypeEntity> findAllShopType(int shopId);

    /**
     * 添加商品类型
     * @param goodsType
     * @return
     */
    String addGoodsType(GoodsTypeEntity goodsType);

    List<GoodsTypeEntity> findAllGoodsType();

    List<UserEntity> findAllShopAdmin(int shopId);

    ShopEntity findShopDetail(int shopId);

    String editShop(ShopEntity shop);

    String deleteShop(int shopId);
}
